package coba.mailing.query;

import java.sql.Connection;
import java.sql.PreparedStatement;
import java.sql.SQLException;
import java.util.Date;

public class UpdateSolicitudFechaMail1 {

	public static void update(Connection con, Long solicitudId,
			Date fechaMail1) throws SQLException {

		String sql = " update COBA_Solicitudes set fechaMail1 = ? where id_ = ? ";

		PreparedStatement stmt = con.prepareStatement(sql);

		stmt.setObject(1, fechaMail1);
		stmt.setLong(2, solicitudId);

		stmt.executeUpdate();

		stmt.close();

	}

}
